﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="BookingNoteUpdate.aspx.cs" Inherits="BookingNote_BookingNoteUpdate"
    Title="更新托运单信息" Culture="auto" meta:resourcekey="PageResource2" UICulture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript" src="../javascript/My97DatePicker/WdatePicker.js"
        defer="defer"></script>

    <link href="../javascript/My97DatePicker/skin/WdatePicker.css" rel="Stylesheet" type="text/css" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="title">
        &nbsp;<asp:Label ID="lblPageType" runat="server" Text="更新托运单" meta:resourcekey="lblPageTypeResource1"></asp:Label></div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="add_table" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td align="right" style="width: 200px; height: 50px">
                        <asp:Label ID="lblShipper" runat="server" Text="托运人：" meta:resourcekey="lblShipperResource1"></asp:Label>
                    </td>
                    <td style="height: 50px;">
                        <asp:DropDownList ID="ddlShipper" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlShipper_SelectedIndexChanged"
                            meta:resourcekey="ddlShipperResource1">
                        </asp:DropDownList>
                        <cc1:ListSearchExtender ID="ListSearchExtender1" runat="server" TargetControlID="ddlShipper"
                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                        </cc1:ListSearchExtender>
                    </td>
                    <td align="right" style="width: 202px; height: 50px">
                        <asp:Label ID="lblShipperLMID" runat="server" Text="联络人：" meta:resourcekey="lblShipperLMIDResource1"></asp:Label>
                    </td>
                    <td style="height: 50px;">
                        <asp:DropDownList ID="ddlShipperLM" runat="server" Enabled="False" meta:resourcekey="ddlShipperLMResource1">
                        </asp:DropDownList>
                        <cc1:ListSearchExtender ID="ListSearchExtender3" runat="server" TargetControlID="ddlShipperLM"
                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                        </cc1:ListSearchExtender>
                    </td>
                    <td align="right" style="width: 220px; height: 50px;">
                        <asp:Label ID="lblCustomer" runat="server" Text="客户客人：" meta:resourcekey="lblCustomerResource1"></asp:Label>
                    </td>
                    <td style="height: 50px;">
                        <asp:DropDownList ID="ddlCustomer" runat="server" meta:resourcekey="ddlCustomerResource1">
                        </asp:DropDownList>
                        <cc1:ListSearchExtender ID="ListSearchExtender4" runat="server" TargetControlID="ddlCustomer"
                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                        </cc1:ListSearchExtender>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 200px">
                        <asp:Label ID="lblInvoiceNO" runat="server" Text="发票号：" meta:resourcekey="lblInvoiceNOResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtInvoiceNO" runat="server" meta:resourcekey="txtInvoiceNOResource1"></asp:TextBox>
                    </td>
                    
                      <td align="right" style="width: 202px">
                        <asp:Label ID="lblJobNumber" runat="server" Text="Job#：" meta:resourcekey="lblJobNumberResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtJobNumber" runat="server"></asp:TextBox>
                    </td>
                    
                    <td align="right" style="width: 220px">
                        <asp:Label ID="lblPcNO" runat="server" Text="装货单：" meta:resourcekey="lblPcNOResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtPcNO" runat="server" meta:resourcekey="txtPcNOResource1"></asp:TextBox>
                    </td>
                   
                </tr>
                <tr>
                 <td align="right" style="width: 200px">
                        <asp:Label ID="lblCPO" runat="server" Text="客户取购单号：" meta:resourcekey="lblCPOResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtCPO" runat="server" meta:resourcekey="txtCPOResource1"></asp:TextBox>
                    </td>
                    <td align="right" style="width: 202px; height: 50px;">
                        <asp:Label ID="lblMarket" runat="server" Text="市场：" meta:resourcekey="lblMarketResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMarket" runat="server" meta:resourcekey="ddlMarketResource1">
                        </asp:DropDownList>
                        <cc1:ListSearchExtender ID="ListSearchExtender6" runat="server" TargetControlID="ddlMarket"
                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                        </cc1:ListSearchExtender>
                    </td>
                    <td align="right" style="width: 220px; height: 50px;">
                        <asp:Label ID="lblDestination" runat="server" Text="目的地：" meta:resourcekey="lblDestinationResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlDestination" runat="server" meta:resourcekey="ddlDestinationResource1">
                        </asp:DropDownList>
                        <cc1:ListSearchExtender ID="ListSearchExtender2" runat="server" TargetControlID="ddlDestination"
                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                        </cc1:ListSearchExtender>
                    </td>
                    
                </tr>
                <tr>
                <td align="right" style="width: 200px; height: 50px;">
                        <asp:Label ID="lblCarrierForwar" runat="server" Text="船公司/货代：" meta:resourcekey="lblCarrierForwarResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCarrierForwar" runat="server" meta:resourcekey="ddlCarrierForwarResource1">
                        </asp:DropDownList>
                        <cc1:ListSearchExtender ID="ListSearchExtender5" runat="server" TargetControlID="ddlCarrierForwar"
                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                        </cc1:ListSearchExtender>
                    </td>
                    <td align="right" style="width: 202px">
                        <asp:Label ID="lblVVD" runat="server" Text="航班及航次 ：" meta:resourcekey="lblVVDResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtVVD" runat="server" meta:resourcekey="txtVVDResource1"></asp:TextBox>
                    </td>
                    <td align="right" style="width: 220px">
                        <asp:Label ID="lblWinStart" runat="server" Text="开仓日期：" meta:resourcekey="lblWinStartResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtWinStart" runat="server" onkeydown="return pdDate(this, event);"
                            meta:resourcekey="txtWinStartResource1" ValidationGroup="add"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtWinStart"
                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                    </td>
                     
                </tr>
                <tr>
                 <td align="right" style="width: 200px" valign="top">
                        <asp:Label ID="lblWinClose" runat="server" Text="截数日期：" meta:resourcekey="lblWinCloseResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtWinClose" runat="server" onkeydown="return pdDate(this,event);"
                            meta:resourcekey="txtWinCloseResource1" ValidationGroup="addall" Width="100px"></asp:TextBox>&nbsp;<asp:TextBox ID="txtWinCloseH" runat="server" Width="20%" ValidationGroup="addall"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtWinClose"
                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                              <asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="txtWinCloseH"
                                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="(([0][0-9])|([1][0-9])|([2][0-3]))([0-5][0-9])"
                                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                    </td>
                    <td align="right" style="width: 202px" valign="top">
                        <asp:Label ID="lblWinLastClose" runat="server" Text="最后截数日：" meta:resourcekey="lblWinLastCloseResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtWinLastClose" runat="server" onkeydown="return pdDate(this,event);"
                            meta:resourcekey="txtWinLastCloseResource1" ValidationGroup="addall" Width="100px"></asp:TextBox>&nbsp;<asp:TextBox ID="txtWinLastCloseH" runat="server" Width="20%"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtWinLastClose"
                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" ControlToValidate="txtWinLastCloseH"
                                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="(([0][0-9])|([1][0-9])|([2][0-3]))([0-5][0-9])"
                                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                    </td>
                    <td align="right" style="width: 220px" valign="top">
                        <asp:Label ID="lblSICutOFFDate" runat="server" Text="最后海关预报日：" meta:resourcekey="lblSICutOFFDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSICutOFFDate" runat="server" onkeydown="return pdDate(this,event);"
                             meta:resourcekey="txtSICutOFFDateResource1" ValidationGroup="addall" Width="100px"></asp:TextBox>&nbsp;<asp:TextBox ID="txtSICutOFFDateH" runat="server" Width="20%"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtSICutOFFDate"
                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                              <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server" ControlToValidate="txtSICutOFFDateH"
                                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="(([0][0-9])|([1][0-9])|([2][0-3]))([0-5][0-9])"
                                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                    </td>
                    
                </tr>
                <tr>
                <td align="right" style="width: 200px">
                        <asp:Label ID="lblBillDate" runat="server" Text="开单日期：" meta:resourcekey="lblBillDateResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtBillDate" runat="server" onkeydown="return pdDate(this, event);"
                             ValidationGroup="addall" meta:resourcekey="txtBillDateResource1"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtBillDate"
                            ValidationGroup="addall" ErrorMessage="*" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                    </td>
                      <td align="right" style="width: 202px">
                                <asp:Label ID="lblSourceCode" runat="server" Text="Source Code：" meta:resourcekey="lblSourceCodeResource1"></asp:Label>
                                </td>
                                <td><asp:TextBox ID="txtSourceCode" runat="server"></asp:TextBox></td>
                    <td align="right" style="width: 220px">
                        <asp:Label ID="lblRemark" runat="server" Text="备注：" meta:resourcekey="lblRemarkResource1"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtRemark" runat="server" Width="90%" meta:resourcekey="txtRemarkResource1"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:Panel ID="plBR" runat="server" GroupingText="托运单详细信息" meta:resourcekey="plBRResource1">
                <div id="divEntrust" runat="server">
                    <div class="title">
                        &nbsp;<asp:Label ID="lblTitleDetail" runat="server" Text="托运单详细信息列表" meta:resourcekey="lblTitleDetailResource1"></asp:Label></div>
                    <div class="list_title">
                        <div class="autoleft">
                            <asp:Label ID="lblTotal" runat="server" meta:resourcekey="lblTotalResource1"></asp:Label><asp:Label
                                ID="lblRecordFound" runat="server" Text="条记录" meta:resourcekey="lblRecordFoundResource1"></asp:Label>
                            <asp:Button ID="btnUpdateD" runat="server" Text="修改" CssClass="btn" OnClick="btnUpdateD_Click"
                                meta:resourcekey="btnUpdateDResource1" />
                            &nbsp;<asp:Button ID="btnCopyD" runat="server" Text="复制" CssClass="btn" OnClick="btnCopyD_Click"
                                meta:resourcekey="btnCopyDResource1" />&nbsp;
                            <asp:Button ID="btnDelD" runat="server" Text="删除" CssClass="btn" OnClientClick="javascript:return confirm('确定要删除该详细托运单？');"
                                OnClick="btnDelD_Click" meta:resourcekey="btnDelDResource1" />
                        </div>
                        <div class="autoright">
                            <asp:Label ID="lblPerPageDisplay" runat="server" Text="每页显示：" meta:resourcekey="lblPerPageDisplayResource1"></asp:Label>
                            <asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged"
                                meta:resourcekey="ddlPagesResource1">
                                <asp:ListItem Selected="True" Text="5" Value="5" meta:resourcekey="ListItemResource1"></asp:ListItem>
                                <asp:ListItem Text="10" Value="10" meta:resourcekey="ListItemResource2"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <asp:GridView ID="gvBookNoteDetailList" runat="server" AllowPaging="True" PageSize="5"
                        EmptyDataText="托运单详细为空" AutoGenerateColumns="False" Width="100%" OnPageIndexChanging="gvBookNoteDetailList_PageIndexChanging"
                        OnRowDataBound="gvBookNoteDetailList_RowDataBound" CssClass="tblGridView" meta:resourcekey="gvBookNoteDetailListResource1">
                        <Columns>
                            <asp:TemplateField HeaderText="选择" meta:resourcekey="TemplateFieldResource1">
                                <ItemTemplate>
                                    <input type="radio" name="chkSelected" value="<%# Eval("RowNum") + "," + Eval("PKID") %>" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="序号" meta:resourcekey="TemplateFieldResourceRowNum1">
                                <ItemTemplate>
                                    <asp:Label ID="lblRowNum" runat="server" Text='<%# Eval("RowNum") %>' meta:resourcekey="lblRowNumResource1"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="确认单号" SortExpression="ConfirmNO" meta:resourcekey="TemplateFieldResource2">
                                <ItemTemplate>
                                    <asp:Label ID="lblConfirmNO2" runat="server" Text='<%# Eval("ConfirmNO") %>' meta:resourcekey="lblConfirmNO2Resource1"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="落货纸号" SortExpression="SONO" meta:resourcekey="TemplateFieldResource3">
                                <ItemTemplate>
                                    <asp:Label ID="lblSONO2" runat="server" Text='<%# Eval("SONO") %>' meta:resourcekey="lblSONO2Resource1"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="货号" SortExpression="ItemNO" meta:resourcekey="TemplateFieldResource4">
                                <ItemTemplate>
                                    <asp:Label ID="lblItemNO2" runat="server" Text='<%# Eval("ItemNO") %>' meta:resourcekey="lblItemNO2Resource1"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="工厂" SortExpression="VendorID" meta:resourcekey="TemplateFieldResource5">
                                <ItemTemplate>
                                    <asp:Label ID="lblVendor2" runat="server" Text='<%# Eval("VendorName") %>' meta:resourcekey="lblVendor2Resource1"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                              <asp:TemplateField HeaderText="JobDate" meta:resourcekey="TemplateFieldResourceJobDate">
                            <ItemTemplate>
                                <asp:Label ID="lblJobDate" runat="server" Text='<%# Eval("JobDate", "{0:yyyy-MM-dd HH:mm}") %>'
                                    meta:resourcekey="lblJobDateResource1s"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                            
                             <asp:TemplateField HeaderText="DELIVERY Date" meta:resourcekey="TemplateFieldResourceDELIVERYDate">
                            <ItemTemplate>
                                <asp:Label ID="lblDeliveryDate" runat="server" Text='<%# Eval("DeliveryDate", "{0:yyyy-MM-dd HH:mm}") %>'
                                    meta:resourcekey="lblJobDateResource1s"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                            
                            <asp:TemplateField HeaderText="仓库" SortExpression="WhouseID" meta:resourcekey="TemplateFieldResource6">
                                <ItemTemplate>
                                    <asp:Label ID="lblWhouse2" runat="server" Text='<%# Eval("WhouseName") %>' meta:resourcekey="lblWhouse2Resource1"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle HorizontalAlign="Center" />
                        <PagerTemplate>
                            <table style="width: 100%">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblCurrentPage" runat="server" Text="页次" meta:resourcekey="lblCurrentPageResource1"></asp:Label>:&nbsp;<asp:Label
                                            ID="Label1" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'
                                            meta:resourcekey="Label1Resource1"></asp:Label>/<asp:Label ID="Label2" runat="server"
                                                Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' meta:resourcekey="Label2Resource1"></asp:Label>&nbsp;
                                        <asp:Label ID="lblTotalPages" runat="server" Text="总计" meta:resourcekey="lblTotalPagesResource1"></asp:Label>:&nbsp;<asp:Label
                                            ID="Label3" runat="server" Text="<%# ((System.Data.DataView)gvBookNoteDetailList.DataSource).Count %>"
                                            meta:resourcekey="Label3Resource1"></asp:Label>
                                    </td>
                                    <td align="right">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                            Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="首页" meta:resourcekey="LinkButton1Resource1"></asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                            Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="前页" meta:resourcekey="LinkButton2Resource1"></asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                            Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                            Text="后页" meta:resourcekey="LinkButton3Resource1"></asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                            Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                            Text="尾页" meta:resourcekey="LinkButton4Resource1"></asp:LinkButton>&nbsp;
                                        <asp:Label ID="lblTurnOn" runat="server" Text="转第" meta:resourcekey="lblTurnOnResource1"></asp:Label>
                                        <asp:TextBox ID="txtPages" runat="server" Width="35px" meta:resourcekey="txtPagesResource1"></asp:TextBox>
                                        <asp:Label ID="lblPages2" runat="server" Text="页" meta:resourcekey="lblPages2Resource1"></asp:Label>
                                        <asp:LinkButton ID="lbtnGo" runat="server" Text="提交" OnClick="lbtnGo_Click" meta:resourcekey="lbtnGoResource1"></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </PagerTemplate>
                        <RowStyle HorizontalAlign="Center" />
                    </asp:GridView>
                </div>
                <br />
                <br />
                <table width="100%" align="center">
                    <tr>
                        <td>
                            <div class="title">
                                <asp:Label ID="Label2" runat="server" Text="编辑托运单详细信息" meta:resourcekey="Label2Resource2"></asp:Label></div>
                            <table class="add_table" cellspacing="1" cellpadding="3" align="center">
                                <tr>
                                    <td align="right" style="height: 50px;">
                                        <asp:Label ID="lblConfirmNO" runat="server" Text="确认单号：" meta:resourcekey="lblConfirmNOResource1"></asp:Label>
                                    </td>
                                    <td style="height: 50px;">
                                        <asp:TextBox ID="txtConfirmNo" runat="server" Width="90%" meta:resourcekey="txtConfirmNoResource1"></asp:TextBox>
                                    </td>
                                    <td align="right" style="height: 50px;">
                                        <asp:Label ID="lblSONO" runat="server" Text="落货纸号：" meta:resourcekey="lblSONOResource1"></asp:Label>
                                    </td>
                                    <td style="height: 50px;">
                                        <asp:TextBox ID="txtSONO" runat="server" Width="90%" meta:resourcekey="txtSONOResource1"
                                            ValidationGroup="add"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtSONO"
                                            ValidationGroup="add" ErrorMessage="*"></asp:RequiredFieldValidator>
                                    </td>
                                    <td align="right" style="height: 50px;">
                                        <asp:Label ID="lblVendor" runat="server" Text="工厂：" meta:resourcekey="lblVendorResource1"></asp:Label>
                                    </td>
                                    <td style="height: 50px;">
                                        <asp:DropDownList ID="ddlVendor" runat="server" AutoPostBack="true"
                                            OnSelectedIndexChanged="ddlVendor_SelectedIndexChanged">
                                        </asp:DropDownList>
                                        <cc1:ListSearchExtender ID="ListSearchExtender7" runat="server" TargetControlID="ddlVendor"
                                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                        </cc1:ListSearchExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="height: 50px;">
                                        <asp:Label ID="lblVendorLinkMan" runat="server" Text="工厂联络人：" meta:resourcekey="lblVendorLinkManResource1"></asp:Label>
                                    </td>
                                    <td style="height: 50px;" style="height: 50px;">
                                        <asp:DropDownList ID="ddlVendorLM" runat="server" meta:resourcekey="dddlVendorLMResource1"
                                            Enabled="false">
                                        </asp:DropDownList>
                                        <cc1:ListSearchExtender ID="ListSearchExtender11" runat="server" TargetControlID="ddlVendorLM"
                                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                        </cc1:ListSearchExtender>
                                    </td>
                                    <td align="right" style="height: 50px;">
                                        <asp:Label ID="lblWhouse" runat="server" Text="仓库：" meta:resourcekey="lblWhouseResource1"></asp:Label>
                                    </td>
                                    <td style="height: 50px;" style="height: 50px;">
                                        <asp:DropDownList ID="ddlWhouse" runat="server" meta:resourcekey="ddlWhouseResource1">
                                        </asp:DropDownList>
                                        <cc1:ListSearchExtender ID="ListSearchExtender8" runat="server" TargetControlID="ddlWhouse"
                                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                        </cc1:ListSearchExtender>
                                    </td>
                                    <td align="right" style="height: 50px;">
                                        <asp:Label ID="lblFCLLCL" runat="server" Text="FCL/LCL：" meta:resourcekey="lblFCLLCLResource1"></asp:Label>
                                    </td>
                                    <td style="height: 50px;">
                                        <asp:DropDownList ID="ddlFCLLCL" runat="server" meta:resourcekey="ddlFCLLCLResource1">
                                            <asp:ListItem Text="FCL" Value="FCL" meta:resourcekey="ListItemResource3"></asp:ListItem>
                                            <asp:ListItem Text="LCL" Value="LCL" meta:resourcekey="ListItemResource4"></asp:ListItem>
                                            <asp:ListItem Text="Console" Value="Console" meta:resourcekey="ListItemConsoleResource3"></asp:ListItem>
                                            <asp:ListItem Text="Head Load" Value="Head Load" meta:resourcekey="ListItemHeadLoadResource4"></asp:ListItem>
                                            <asp:ListItem Text="Tail Load" Value="Tail Load" meta:resourcekey="ListItemTailLoadResource4"></asp:ListItem>
                                        </asp:DropDownList>
                                        <cc1:ListSearchExtender ID="ListSearchExtender9" runat="server" TargetControlID="ddlFCLLCL"
                                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                        </cc1:ListSearchExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" style="height: 50px;">
                                        <asp:Label ID="lblHKPRC" runat="server" Text="香港/国内：" meta:resourcekey="lblHKPRCResource1"></asp:Label>
                                    </td>
                                    <td style="height: 50px;">
                                        <asp:DropDownList ID="ddlHKPRC" runat="server" meta:resourcekey="ddlHKPRCResource1">                                            
                                            <asp:ListItem Text="国内" Value="PRC" meta:resourcekey="ListItemResource6"></asp:ListItem>
                                            <asp:ListItem Text="香港" Value="HK" meta:resourcekey="ListItemResource5"></asp:ListItem>
                                        </asp:DropDownList>
                                        <cc1:ListSearchExtender ID="ListSearchExtender10" runat="server" TargetControlID="ddlHKPRC"
                                            PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                        </cc1:ListSearchExtender>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblCargoReadyDate" runat="server" Text="可提货日 ：" meta:resourcekey="lblCargoReadyDateResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCargoReadyDate" runat="server" onkeydown="return pdDate(this,event);"
                                            ValidationGroup="add" Width="90%" meta:resourcekey="txtCargoReadyDateResource1"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtCargoReadyDate"
                                            ValidationGroup="add" ErrorMessage="*" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                                    </td>
                                    <%--  <td align="right">
                                        <asp:Label ID="lblBespokeDate" runat="server" Text="预约时间：" meta:resourcekey="lblBespokeDateResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtBespokeDate" runat="server" onkeydown="return pdDate(this,event);"
                                            Width="90%" meta:resourcekey="txtBespokeDateResource1"></asp:TextBox>                                       
                                    </td>--%>
                                    <td align="right">
                                        <asp:Label ID="lblJobDate" runat="server" Text="收货日：" meta:resourcekey="lblJobDateResource1"></asp:Label>
                                    </td>
                                  <td>
                                        <asp:TextBox ID="txtJobDate" runat="server" Width="60%" onkeydown="return pdDate(this,event);"
                                            ValidationGroup="add"></asp:TextBox>&nbsp;<asp:TextBox ID="txtJobDateH" Width="20%" runat="server"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtJobDate"
                                            ValidationGroup="add" ErrorMessage="*" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ControlToValidate="txtJobDateH"
                                            ValidationGroup="add" ErrorMessage="*" ValidationExpression="(([0][0-9])|([1][0-9])|([2][0-3]))([0-5][0-9])"
                                            meta:resourcekey="RegularExpressionValidator7Resource1"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <%--  <td align="right">
                                        <asp:Label ID="lblDeliveryDate" runat="server" Text="交货日：" meta:resourcekey="lblDeliveryDateResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDeliveryDate" runat="server" CssClass="Wdate" Width="90%" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                                            onkeydown="return pdDate(this,event);"></asp:TextBox>
                                    </td>--%>
                                    <td align="right">
                                        <asp:Label ID="lblItemNO" runat="server" Text="货号：" meta:resourcekey="lblItemNOResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtItemNO" runat="server" Width="90%" meta:resourcekey="txtItemNOResource1"></asp:TextBox>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblPCS" runat="server" Text="件数：" meta:resourcekey="lblPCSResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPCS" runat="server" Width="90%" ValidationGroup="add" meta:resourcekey="txtPCSResource1"></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtPCS"
                                            Operator="GreaterThan" Type="Integer" ValueToCompare="0" ValidationGroup="add">
                                        </asp:CompareValidator>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblCTN" runat="server" Text="箱数：" meta:resourcekey="lblCTNResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtCTN" runat="server" Width="90%" meta:resourcekey="txtCTNResource1"></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtCTN"
                                            Operator="GreaterThan" Type="Integer" ValueToCompare="0" ValidationGroup="add">
                                        </asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblGrossWT" runat="server" Text="毛重：" meta:resourcekey="lblGrossWTResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtGrossWT" runat="server" Width="90%" meta:resourcekey="txtGrossWTResource1"></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtGrossWT"
                                            Operator="GreaterThan" Type="Double" ValueToCompare="0" ValidationGroup="add">
                                        </asp:CompareValidator>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblVOL" runat="server" Text="体积 ：" meta:resourcekey="lblVOLResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtVOL" runat="server" Width="90%" meta:resourcekey="txtVOLResource1"></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator4" runat="server" ErrorMessage="*" ControlToValidate="txtVOL"
                                            Operator="GreaterThan" Type="Double" ValueToCompare="0" ValidationGroup="add">
                                        </asp:CompareValidator>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblContainerNO" runat="server" Text="柜号 ：" meta:resourcekey="lblContainerNOResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtContainerNO" runat="server" Width="90%" meta:resourcekey="txtContainerNOResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblSealNO" runat="server" Text="封条号 ：" meta:resourcekey="lblSealNOResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSealNO" runat="server" Width="90%" meta:resourcekey="txtSealNOResource1"></asp:TextBox>
                                    </td>
                                    <%--  <td align="right">
                                        <asp:Label ID="lblVVD" runat="server" Text="航班及航次 ：" meta:resourcekey="lblVVDResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtVVD" runat="server" Width="90%" meta:resourcekey="txtVVDResource1"></asp:TextBox>
                                    </td>--%>
                                    <td align="right">
                                        <asp:Label ID="lblPNNO" runat="server" Text="收货单号 ：" meta:resourcekey="lblPNNOResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPNNO" runat="server" Width="90%" meta:resourcekey="txtPNNOResource1"></asp:TextBox>
                                    </td>
                                       <td align="right">
                                        <asp:Label ID="lblPCNOD" runat="server" Text="装货单号 ：" Width="90%" meta:resourcekey="lblPCNODResource1"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPCNOD" runat="server" Width="90%" meta:resourcekey="txtPCNODResource1"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                               
                                    <td align="right">
                                    <asp:Label ID="lblAppointmentNO" runat="server" Text="Appointment："></asp:Label>
                                    </td>
                                    <td>
                                    <asp:TextBox ID="txtAppointmentNO" runat="server" ></asp:TextBox>
                                    </td>
                                    <td align="right">
                                        <asp:Label ID="lblRemarkD" runat="server" Text="备注：" meta:resourcekey="lblRemarkDResource1"></asp:Label>
                                    </td>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtRemarkD" runat="server" Width="90%" meta:resourcekey="txtRemarkDResource1"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:Button ID="btnSub" runat="server" Text="添加" CssClass="btn" ValidationGroup="add"
                                OnClick="btnSub_Click" meta:resourcekey="btnSubResource1" />&nbsp;&nbsp;<asp:Button
                                    ID="btnClose" CssClass="btn" runat="server" Text="清空" OnClick="btnClose_Click"
                                    meta:resourcekey="btnCloseResource1" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />
    <br />
    <div align="center">
        <asp:Button ID="btnAdd" runat="server" Text="保存" CssClass="btn" OnClick="btnAdd_Click"
            meta:resourcekey="btnAddResource1" ValidationGroup="addall" />&nbsp;<asp:Button ID="btnBack" runat="server"
                Text="返回" CssClass="btn" OnClick="btnBack_Click" meta:resourcekey="btnBackResource1" />
    </div>
    <input type="hidden" id="hidUpdateNum" runat="server" />
</asp:Content>
